import { createApp } from 'vue'
import './style.css'
//Element UI使用
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import{ router } from './router'
const app = createApp(App)
// icon全局引入
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
app.use(router)
app.use(ElementPlus)
for (const[key,component] of Object.entries(ElementPlusIconsVue)){
    app.component(key,component)
}
import 'virtual:windi.css'
import 'nprogress/nprogress.css'
//方便全局使用
import "../src/assets/font/Walk-Around-the-Block.ttf"
//引入createPinia函数（根存储）
import {createPinia} from 'pinia'
//整个应用使用createPinia()
app.use(createPinia())
app.mount('#app')
